<@master template="master/master-loan"  title="归档借阅">
<!-- 贷款基本信息 begin -->

<div class="action-ajax-load detailsBox selectW70">
     
     <div class="detailsBox">
	 <div class="openBox">
	 <!-- 贷款要素 begin -->
	 <h3><i class="jtIco"></i>贷款要素
     </h3>
  	  <div class="action-ajax-load" data-url="/rback/l_i_common?loanapplyNo=${loanapply.loanapplyNo}"></div> 
  	  <!-- 贷款要素  end -->
     </div>
    </div>
    
    <#if state == "CLO">
        <div class="openBox">
            <h3 class="mt20"><i class="jtIco"></i> 归档资料清单</h3>
            <@include file="/archive/v1/borrowMode"/>
            <@include file="/archive/v1/borrowMode2"/>
            <input id="loanapplyNoArchive" type="hidden" value="${loanapplyNo}"/>
            <input id="bankTypeIdArchive" type="hidden" value="${bankTypeId}"/>
            <input id="jsonArchive" name="archiveRecordJSON" type="hidden"/>
        </div>
        <div class="openBox action-ajax-load"
             data-url="<@url value='/archive/rest/v1/ajaxBorrowRecord?referId=${loanapplyNo}&pageSize=15&pageIndex=0'/>"></div>
    </#if>

    <div class="openBox">
        <h3 class="mt20 ">审核记录<i class="jtIco"></i></h3>
        <#if afterLoanArchive>
            <div class="openBox" style="display: block;">
                <h3 class=" action-open-button xlh3title"><span class="xiala"></span>档案归档</h3>
                <div class="action-ajax-load-show" data-url="${agreeInfoUrl}referId=${loanapplyNo}&processType=ARCHIVE"
                     style="display: block;">
                </div>
            </div>
        </#if>
        <#if archiveRepeat>
            <div class="openBox" style="display: block;">
                <h3 class=" action-open-button xlh3title"><span class="xiala"></span>补充归档</h3>
                <div class="action-ajax-load-show" data-url="${agreeInfoUrl}referId=${loanapplyNo}&processType=BC_ARCHIVE"
                     style="display: block;">
                </div>
            </div>
        </#if>
    </div>

    <div class="detailsBox pb80">
        <div id="detailBtnDiv" class=" tac footFixed ">
            <#if isNotArchive>
            <a href="<@url value='/archive/rest/startArchive?loanapplyNo=${loanapplyNo}'/>" class="btn_auto_30 btn_blue action-ajax-btn">启动归档</a>
            </#if>
            <#if record?? >
                <@permission permissionName="GD_JY_BTN">
                    <a class="action-ajax-btn btn_auto_30 btn_blue" data-url="<@url value='/archive/rest/v1/borrowPopup?referId=${loanapplyNo}'/>">申请借阅</a>
                </@permission>
            </#if>
        </div>
    </div>
</div>

</@master>
<@js>
    $('.detailsBox select').attr('disabled','disabled');
    $('#archiveNoInpu').attr('disabled','disabled');
    $('#cabinetNoInpu').attr('disabled','disabled');
</@js>
<@jsRender/>